<ul class="breadcrumb">
    <?php

    function breadcrumb($a, $b) {

        $href = (isset($a)) ? $a->getHref() : "";
        $class = "";
        $separ = " <span class='divider'>/</span>";

        if ($b < 2) {
            $href = "#";
            $class = "active";
            $separ = "";
        }
        return "<li class='" . $class . "' ><a href='" . $href . "'>" . $a . "</a>" . $separ . "</li>";
    }

    echo implode(' ', array_map("breadcrumb", $this->pages, array(count($this->pages))));
    ?>
</ul>
